import Vue from 'vue'
import App from './App'


import cuCustom from './components/cu-custom/cu-custom.vue'
Vue.component('cu-custom', cuCustom)

import * as comm from './util/common.js';
import * as Api from './util/api.js';
import store from './store';
import validate from './util/validate.js';
Vue.prototype.$comm = comm;
Vue.prototype.$api = Api;
Vue.prototype.$store = store;
Vue.prototype.$validate = validate;


// 全局过滤引入
import filterObj from './util/filter.js';

Object.keys(filterObj).forEach(filterItem => Vue.filter(filterItem, filterObj[filterItem]))

Vue.config.productionTip = false
App.mpType = 'app'

const app = new Vue({
	...App
})
app.$mount()
